import request from '@/utils/request'

export default {
  // 添加小结
  addVideo(video) {
    return request({
      url: '/eduservice/video/addVideo',
      method: 'post',
      data: video
    })
  },
  // 删除小结
  deleteVideo(id) {
    return request({
      url: '/eduservice/video/deleteVideo/' + id,
      method: 'get'
    })
  },
  // 修改小结
  updateVideo(video) {
    return request({
      url: '/eduservice/video/update',
      method: 'post',
      data: video
    })
  },
  // 根据 id 查询小结
  getVideoById(id) {
    return request({
      url: '/eduservice/video/getVideo/' + id,
      method: 'get'
    })
  },
  //删除视频
  deleteAlyVideo(id) {
    return request({
      url: '/eduvod/video/removeAlyVideo/'+id,
      method: 'delete'
    })
  }

}
